import http from "@/plugins/axios";

//获去播放地址
export function getPlayerPath(devicesn){
    return http.get("/api/sip/player/"+devicesn);
}
//获取设备
export function getDeviceList(){
    return http.get("/api/sys/dev/list");
}

//获取设备
export function getDeviceList2(){
    return http.get("/api/sys/dev/listByDir");
}
//视频点播
export function getPlayer(devicesn){
    return http.get("/api/sip/player/"+devicesn);
}

//停止播放
export function stopPlayer(devicesn){
    return http.get("/api/sip/bye/"+devicesn);
}

//控制相机
export function controllerDevice(cmd,devicesn){
    return http.get("/api/sip/cmd/"+cmd+"/"+devicesn);
}
//预置位查询
export function getYZWInfo(devicesn){
    return http.get("/api/sip/query/yzw/"+devicesn);
}
//预置位控制
export function YZWController(cmd,devicesn,num){
    return http.get("/api/sip/yzw/"+cmd+"/"+devicesn+"/"+num);
}


//
export function getDevinceInfo(devicesn){
    return http.get("/api/sip/query/deviceinfo/"+devicesn);
}

export function getCatalog(devicesn){
    return http.get("/api/sip/query/catalog/"+devicesn);
}

